//引入路由
import {createRouter,createWebHistory} from 'vue-router'
//引入需要呈现的组件
import Handle from '@/pages/Handle.vue'
import Calculate from '@/pages/Calculate.vue'
import Settimeout from '@/pages/Settimeout.vue'

//创建路由
const router = createRouter({
    history:createWebHistory(),
    routes:[  //路由规则
        {
            name:'handleList',
            path:'/Handle',
            component:Handle
        },
        {
            name:'calculate',
            path:'/Calculate',
            component:Calculate
        },
        {
            name:'settimeout',
            path:'/Settimeout',
            component:Settimeout
        }
    ]
})
//暴露
export default router